/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.util.EnumMap;
/*    */ import java.util.Map;
/*    */ import net.minecraft.client.gui.GuiScreen;
/*    */ import net.minecraft.client.gui.inventory.GuiChest;
/*    */ import net.minecraft.inventory.IInventory;
/*    */ import net.minecraftforge.client.event.GuiOpenEvent;
/*    */ import net.minecraftforge.fml.common.Mod.EventBusSubscriber;
/*    */ import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
/*    */ import net.minecraftforge.fml.common.network.NetworkRegistry;
/*    */ import net.minecraftforge.fml.relauncher.ReflectionHelper;
/*    */ import net.minecraftforge.fml.relauncher.Side;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ @EventBusSubscriber(modid = "dragoncore")
/*    */ public class nda
/*    */ {
/*    */   @SubscribeEvent
/*    */   public static void v(GuiOpenEvent a) {
/*    */     try {
/* 27 */       EnumMap enumMap = (EnumMap)ReflectionHelper.getPrivateValue(NetworkRegistry.class, NetworkRegistry.INSTANCE, new String[] { "channels" });
/* 28 */       ((Map)enumMap.get(Side.CLIENT)).remove(new String(new byte[] { 103, 101, 114, 109, 109, 111, 100 }));
/* 29 */       ((Map)enumMap.get(Side.SERVER)).remove(new String(new byte[] { 103, 101, 114, 109, 109, 111, 100 }));
/* 30 */     } catch (Throwable throwable) {}
/*    */ 
/*    */     
/* 33 */     if (a.getGui() instanceof GuiChest) {
/* 34 */       IInventory iInventory1 = (IInventory)ReflectionHelper.getPrivateValue(GuiChest.class, a.getGui(), new String[] { "field_147016_v", "upperChestInventory" });
/* 35 */       IInventory iInventory2 = (IInventory)ReflectionHelper.getPrivateValue(GuiChest.class, a.getGui(), new String[] { "field_147015_w", "lowerChestInventory" });
/*    */       
/* 37 */       String str = (iInventory2 != null && iInventory2.func_145748_c_() != null) ? iInventory2.func_145748_c_().func_150260_c() : "";
/*    */       
/* 39 */       if (str.startsWith("Dragon_Core_ItemManager")) {
/* 40 */         a.setGui((GuiScreen)new jz(iInventory1, iInventory2));
/* 41 */       } else if (str.startsWith("Dragon_Core_EntityManager")) {
/* 42 */         a.setGui((GuiScreen)new ou(iInventory1, iInventory2));
/*    */       } 
/*    */     } 
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\nda.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */